Disable memory mapping warnings when stub domain is used.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Feb 2010 18:46:09 +0000 (18:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Feb 2010 18:46:09 +0000 (18:46 +0000)
Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
xen/arch/x86/mm/shadow/common.c

index 5e37bb01d4907c3f0516bd7bb4df3a2cac634831..adb7396d860232258f53460d355f5b640e5a1eae 100644 (file)
@@ -2607,9 +2607,11 @@ int sh_remove_all_mappings(struct vcpu *v, mfn_t gmfn)
     {
         /* Don't complain if we're in HVM and there are some extra mappings: 
          * The qemu helper process has an untyped mapping of this dom's RAM 
-         * and the HVM restore program takes another. */
+         * and the HVM restore program takes another. Additionally, if stub
+         * domain is active then it also has an untyped mapping of original
+         * domain's RAM. */
         if ( !(shadow_mode_external(v->domain)
-               && (page->count_info & PGC_count_mask) <= 3
+               && (page->count_info & PGC_count_mask) <= 4
                && (page->u.inuse.type_info & PGT_count_mask) == 0) )
         {
             SHADOW_ERROR("can't find all mappings of mfn %lx: "